package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 采购申请对象 algs_purchase_request
 * 
 * @author ruoyi
 * @date 2023-03-24
 */
public class AlgsPurchaseRequest extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 申请ID */
    private Long purchaseRequestId;

    /** 申请类型ID（外键） */
    @Excel(name = "申请类型ID", readConverterExp = "外=键")
    private Long typeId;

    /** 采购名 */
    @Excel(name = "采购名")
    private String purchaseRequestName;

    /** 数量 */
    @Excel(name = "数量")
    private Long purchaseRequestNum;

    /** 申请日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "申请日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date purchaseRequestDate;

    /** 申请人ID（外键） */
    @Excel(name = "申请人ID", readConverterExp = "外=键")
    private Long staffId;

    /** 备用列 */
    @Excel(name = "备用列")
    private Long purchaseRequestBy1;

    /** 备用列 */
    @Excel(name = "备用列")
    private String purchaseRequestBy2;

    /** 备用列 */
    @Excel(name = "备用列")
    private String purchaseRequestBy3;

    /** 采购金额 */
    @Excel(name = "采购金额")
    private BigDecimal purchaseRequestPrice;

    /** 采购员ID（外键） */
    @Excel(name = "采购员ID", readConverterExp = "外=键")
    private Long staffPurchaseId;

    public void setPurchaseRequestId(Long purchaseRequestId) 
    {
        this.purchaseRequestId = purchaseRequestId;
    }

    public Long getPurchaseRequestId() 
    {
        return purchaseRequestId;
    }
    public void setTypeId(Long typeId) 
    {
        this.typeId = typeId;
    }

    public Long getTypeId() 
    {
        return typeId;
    }
    public void setPurchaseRequestName(String purchaseRequestName) 
    {
        this.purchaseRequestName = purchaseRequestName;
    }

    public String getPurchaseRequestName() 
    {
        return purchaseRequestName;
    }
    public void setPurchaseRequestNum(Long purchaseRequestNum) 
    {
        this.purchaseRequestNum = purchaseRequestNum;
    }

    public Long getPurchaseRequestNum() 
    {
        return purchaseRequestNum;
    }
    public void setPurchaseRequestDate(Date purchaseRequestDate) 
    {
        this.purchaseRequestDate = purchaseRequestDate;
    }

    public Date getPurchaseRequestDate() 
    {
        return purchaseRequestDate;
    }
    public void setStaffId(Long staffId) 
    {
        this.staffId = staffId;
    }

    public Long getStaffId() 
    {
        return staffId;
    }
    public void setPurchaseRequestBy1(Long purchaseRequestBy1) 
    {
        this.purchaseRequestBy1 = purchaseRequestBy1;
    }

    public Long getPurchaseRequestBy1() 
    {
        return purchaseRequestBy1;
    }
    public void setPurchaseRequestBy2(String purchaseRequestBy2) 
    {
        this.purchaseRequestBy2 = purchaseRequestBy2;
    }

    public String getPurchaseRequestBy2() 
    {
        return purchaseRequestBy2;
    }
    public void setPurchaseRequestBy3(String purchaseRequestBy3) 
    {
        this.purchaseRequestBy3 = purchaseRequestBy3;
    }

    public String getPurchaseRequestBy3() 
    {
        return purchaseRequestBy3;
    }
    public void setPurchaseRequestPrice(BigDecimal purchaseRequestPrice) 
    {
        this.purchaseRequestPrice = purchaseRequestPrice;
    }

    public BigDecimal getPurchaseRequestPrice() 
    {
        return purchaseRequestPrice;
    }
    public void setStaffPurchaseId(Long staffPurchaseId) 
    {
        this.staffPurchaseId = staffPurchaseId;
    }

    public Long getStaffPurchaseId() 
    {
        return staffPurchaseId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("purchaseRequestId", getPurchaseRequestId())
            .append("typeId", getTypeId())
            .append("purchaseRequestName", getPurchaseRequestName())
            .append("purchaseRequestNum", getPurchaseRequestNum())
            .append("purchaseRequestDate", getPurchaseRequestDate())
            .append("staffId", getStaffId())
            .append("purchaseRequestBy1", getPurchaseRequestBy1())
            .append("purchaseRequestBy2", getPurchaseRequestBy2())
            .append("purchaseRequestBy3", getPurchaseRequestBy3())
            .append("purchaseRequestPrice", getPurchaseRequestPrice())
            .append("staffPurchaseId", getStaffPurchaseId())
            .toString();
    }
}
